/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.icanci.loopstack.damc.admin.dal.mongo.daointerface;

import java.util.List;

import cn.icanci.loopstack.damc.admin.dal.mongo.dateobject.RegisterTableDO;

/**
 * @author icanci
 * @since 1.0 Created in 2025/05/16 22:52
 */
public interface RegisterTableDAO extends BaseDAO<RegisterTableDO> {
    /** 文档对应的名字  */
    String                 COLLECTION_NAME  = BASE_COLLECTION_NAME + "register-table";
    /** 文档对应的Class */
    Class<RegisterTableDO> COLLECTION_CLASS = RegisterTableDO.class;

    RegisterTableDO queryUnionOne(String appCode, String clientAddress, int clientPort);

    List<RegisterTableDO> queryEnableByAppCode(String appCode);

    /** 列 */
    interface RegisterTableColumn extends BaseColumn {
        /** 项目唯一标识 CODE */
        String APP_CODE       = "appCode";
        /** 注册地址 */
        String CLIENT_ADDRESS = "clientAddress";
        /** 注册端口 */
        String CLIENT_PORT    = "clientPort";

    }
}
